import { Prisma } from '@prisma/client';
import { BaseQueryDto } from './base.dto';
import { IsDefined } from 'class-validator';

export class TokenLogQueryDto extends BaseQueryDto<
  Prisma.TokenLogWhereUniqueInput & {
    startTime?: string;
    endTime?: string;
    title?: string;
    no?: string;
    fromMobile?: string;
    fromName?: string;
    recipientMobile?: string;
    recipientName?: string;
  }
> {}

export class TokensDestroyDto {
  @IsDefined({ message: '资产未选择' })
  ids: number[];
}
